<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('提交审核')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-brand-edit" th:object="${purId}">
        <input name="purId" th:value="${purId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">部门：</label>
            <div class="col-sm-8">
                <select name="deptName"  class="form-control">
                    <option value="">请选择</option>
                    <option value="202">市场部</option>
                    <option value="203">采购部</option>
                    <option value="204">财务部</option>
                    <option value="205">行政部</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">职位：</label>
            <div class="col-sm-8">
                <select name="roleName"  class="form-control">
                    <option value="">请选择</option>
                    <option value="202">部门经理</option>
                    <option value="203">部门副经理</option>
                    <option value="204">部门主管</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <select name="sysCheckUserId"  class="form-control">
                    <option value="">请选择</option>
                    <option value="101">张三</option>
                    <option value="102">张三1</option>
                    <option value="103">张三2</option>
                </select>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "purchase/repo";
    $("#form-brand-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/check", $('#form-brand-edit').serialize());
        }
    }

    $("input[name='createTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>